<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>简单数据类型综合应用案例</title>
</head>
<body>
<% // 以下是Java程序片
	boolean booleanTemp = true;
	byte byteTemp = 80;
	char charTemp = 'c';
	int intTemp = 234;
	short shortTemp = 234;
	long longTemp = 123456;
	float floatTemp = 1.234f;
	double doubleTemp = 1.23E-8; // 科学计数法
	out.println("布尔值变量booleanTemp 值为： " + booleanTemp + "<br>");
	out.println("字符型变量charTemp 值为： " + charTemp + "<br>");
	out.println("整形变量intTemp 值为： " + intTemp + "<br>");
	out.println("短整型变量shortTemp 值为： " + shortTemp + "<br>");
	out.println("长整型变量longTemp 值为： " + longTemp + "<br>");
	out.println("单精度浮点型变量floatTemp 值为： " + floatTemp + "<br>");
	out.println("双精度浮点型变量doubleTemp 值为： " + doubleTemp + "<br>");
%>
</body>
</html>